const obj = {
    zhangBinWen : '1',
    tangLu : '2'
}
for (const str of Object.keys(obj)) {
    const old = str
    let newVal
    newVal = str.replace(/[A-Z]/g, match => {
        return '_' + match.toLowerCase()
    })
    obj[newVal] = obj[old]
    delete obj[old]
}
console.log(obj)
